<ion-header>
    <ion-navbar class="nav-calm">
        <ion-title>出入库</ion-title>
    </ion-navbar>
</ion-header>

<ion-content padding>
    <div class="button-bar header-btn">
        <a class="button" (click)="ToStoragePage()">出库单</a>
        <a class="button act">收货记录</a>
    </div>
    <div class="sea">
        <ion-item class="item-input">
            <ion-input type="text" clearInput></ion-input>
        </ion-item>
        <div class="search"></div>
    </div>
    <ion-refresher (ionRefresh)="doRefresh($event)">
        <ion-refresher-content
                pullingIcon="arrow-dropdown"
                pullingText="Pull to refresh"
                refreshingSpinner="circles"
                refreshingText="Refreshing...">
        </ion-refresher-content>
    </ion-refresher>
    <div class="mlist" *ngIf="hasStorage">
        <div class="mitem" *ngFor="let item of items">
            <div class="mtop">
                <div class="left img"></div>
                <div class="left cont">
                    <div class="name">{{item.productName}}</div>
                    <div class="xiang">出库单号：<span clas="outNo">{{item.outNo}}</span></div>
                    <div class="xiang">已扫：<span class="num">{{item.count}}</span>箱</div>
                    <div class="xiang">去向：<span class="addr">{{item.receivedCompanyName}}</span></div>
                    <div class="xiang">创建时间：<span class="time">{{item.createDate}}</span></div>
                </div>
                <button ion-button class="tcheck" (click)="Tcheck()">抽检</button>
            </div>
        </div>
        <div class="mitem">
            <div class="mtop">
                <div class="left img"></div>
                <div class="left cont">
                    <div class="name">贵州习酒</div>
                    <div class="xiang">已扫：<span class="num">121222</span>箱</div>
                    <div class="xiang">去向：<span class="addr">深圳在乎传媒贸易有限公司</span></div>
                    <div class="xiang">创建时间：<span class="time">2016年03月06日 12:24:32</span></div>
                </div>
                <button ion-button class="tcheck">抽检</button>
            </div>
        </div>
    </div>

    <ion-infinite-scroll (ionInfinite)="doInfinite($event)">
        <ion-infinite-scroll-content
                loadingSpinner="bubbles"
                loadingText="Loading more data...">
        </ion-infinite-scroll-content>
    </ion-infinite-scroll>

    <div class="no-storage" *ngIf="!hasStorage">
        <div class="no-box">
            <i class="img"></i>
            <div>暂无记录</div>
        </div>
    </div>
</ion-content>
